
#!/bin/bash
# --------------------------------------------------
#Author:  以谁为师
#Email:   admin@attacker.club

rpm -ivh https://repo.mysql.com/mysql80-community-release-el7.rpm



yum remove mariadb* -y
# 卸载 mariadb

yum install mysql

systemctl start mysqld
# 启动服务
grep 'temporary password' /var/log/mysqld.log
# 查看自动生成的密码

